﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangePwd.aspx.cs" Inherits="admin_ChangePwd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../css/table.css" rel="stylesheet" type="text/css" />
    <link href="../css/body.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .main
        {
            width: 450px;
            margin-left:50px;
            margin-top:30px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
    
        <table>
            <tr>
                <td>
                    原密码：</td>
                <td>
                    <asp:TextBox ID="yPWD" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="yPWD" ErrorMessage="请输入原密码" Display="Dynamic">请输入原密码</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    新密码：</td>
                <td class="style1">
                    <asp:TextBox ID="xPWD1" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="xPWD1" ErrorMessage="请输入新密码" Display="Dynamic">请输入新密码</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    确认新密码：</td>
                <td class="style1">
                    <asp:TextBox ID="xPWD2" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="xPWD2" Display="Dynamic" ErrorMessage="请输入确认密码">请输入确认密码</asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="xPWD1" ControlToValidate="xPWD2" Display="Dynamic" 
                        ErrorMessage="两次新密码不相同">两次新密码不相同</asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                <center>
                    <asp:Button ID="Button1" runat="server" Text="确定" onclick="Button1_Click" 
                        Width="50px" />
                        </center>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
